package com.kongxx.struts2study.json;

import java.util.ArrayList;
import java.util.List;

public class UserServiceImpl implements UserService {

	private static List<User> users = new ArrayList<User>();
	
	public User createUser(String username, String password) {
		User user = new User();
		user.setUsername(username);
		user.setPassword(password);
		users.add(user);
		return user;
	}

	public List<User> getUsers() {
		return users;
	}

}